LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := fecudp
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../thirdparty/asio
LOCAL_EXPORT_CFLAGS := $(LOCAL_CFLAGS) -fexceptions

LOCAL_SRC_FILES := \
		$(LOCAL_PATH)/../fecudp/message_decode_buffer.cpp \
		$(LOCAL_PATH)/../fecudp/message_encode_buffer.cpp \
		$(LOCAL_PATH)/../fecudp/normEncoderRS8.cpp \
		$(LOCAL_PATH)/../fecudp/udp_endpoint.cpp
	
include $(BUILD_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../thirdparty/asio $(LOCAL_PATH)/../
LOCAL_MODULE := fec_udp_client
LOCAL_STATIC_LIBRARIES := fecudp
LOCAL_SRC_FILES := $(LOCAL_PATH)/../exameples/fec_udp/client.cpp
include $(BUILD_EXECUTABLE)

include $(CLEAR_VARS)
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../thirdparty/asio $(LOCAL_PATH)/../
LOCAL_MODULE := fec_udp_server
LOCAL_STATIC_LIBRARIES := fecudp
LOCAL_SRC_FILES := $(LOCAL_PATH)/../exameples/fec_udp/server.cpp
include $(BUILD_EXECUTABLE)
